import scala.io.StdIn._
object Practise3{
  def transformList(list: List[Int]): List[Int] = {
  list.map(x => if (x % 2 == 0) x / 2 else x + 1)
}
  def main(args:Array[String]):Unit={
    val list=List(25,78,14,37,89,3,5,8)
    println(transformList(list))
  }
}
